const { ccclass, property } = cc._decorator;

@ccclass
export default class AboutPage extends cc.Component {
    @property(cc.Node)
    AboutPage: cc.Node = null;

    @property(cc.Node)
    back: cc.Node = null;

    @property(cc.Node)
    centerBg: cc.Node = null;

    @property(cc.Node)
    set_frame_bg: cc.Node = null;

    @property(cc.Node)
    spr_game_icon: cc.Node = null;

    @property(cc.Node)
    set_head_bg: cc.Node = null;

    @property(cc.Node)
    label_game_name: cc.Node = null;

    @property(cc.Node)
    label_version: cc.Node = null;

    @property(cc.Node)
    label_down_tips: cc.Node = null;

    @property(cc.Node)
    label_app_version: cc.Node = null;

    @property(cc.Node)
    label_channel: cc.Node = null;

    @property(cc.Node)
    titleBg: cc.Node = null;

    @property(cc.Node)
    title: cc.Node = null;

    @property(cc.Node)
    btn_close: cc.Node = null;

    onLoad() {
        this.AboutPage = this.node;
        this.back = this.AboutPage.getChildByName("back");
        this.centerBg = this.back.getChildByName("centerBg");
        this.set_frame_bg = this.centerBg.getChildByName("set_frame_bg");
        this.spr_game_icon = this.centerBg.getChildByName("spr_game_icon");
        this.set_head_bg = this.centerBg.getChildByName("set_head_bg");
        this.label_game_name = this.centerBg.getChildByName("label_game_name");
        this.label_version = this.centerBg.getChildByName("label_version");
        this.label_down_tips = this.centerBg.getChildByName("label_down_tips");
        this.label_app_version = this.centerBg.getChildByName("label_app_version");
        this.label_channel = this.centerBg.getChildByName("label_channel");
        this.titleBg = this.back.getChildByName("titleBg");
        this.title = this.titleBg.getChildByName("title");
        this.btn_close = this.AboutPage.getChildByName("btn_close");
    }
    
    static URL = "db://assets/resources/pages/AboutPage.prefab";
}
